package com.study.dto;

import java.util.Date;

/**
 * @author lxl
 * @version 2022-06-20 22:56
 * 公共的搜索条件
 */

public class Search {

    /**
     * 需要排序的字段名
     */
    private String sortName;
    /**
     * 排序方式asc | desc
     */
    private String sortOrder;
    /**
     * 每页最大数
     */
    private Integer rowMax;
    /**
     * 页面（也就是当前页）
     */
    private Integer current;
    /**
     * 模糊搜索条件
     */
    private String key;
    /**
     * 开始时间
     */
    private Date startTime;
    /**
     * 结束时间
     */
    private Date endTime;

    public String getSortName() {
        return sortName;
    }

    public void setSortName(String sortName) {
        this.sortName = sortName;
    }

    public String getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Integer getRowMax() {
        
        return rowMax;
    }

    public void setRowMax(Integer rowMax) {
        this.rowMax = rowMax;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
}
